/* 额外的CSS样式 */

/* ===== 强力消除右侧空白 ===== */
/* 强制主内容区域扩展到整个页面宽度 */
.md-content,
.md-content__inner,
.md-main,
.md-main__inner,
.md-typeset {
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  padding-right: 0 !important;
}

/* 强制所有可能的容器都扩展到全宽 */
.md-grid,
.md-container,
.md-content__inner,
.md-content__inner > * {
  max-width: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* 强制主内容区域占据所有可用空间 */
.md-main {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* 强制内容区域扩展到全宽 */
.md-content {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* 强制内部内容扩展到全宽 */
.md-content__inner {
  max-width: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* 强制类型设置扩展到全宽 */
.md-typeset {
  max-width: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* 强制所有可能的网格和容器扩展到全宽 */
.md-grid,
.md-container,
.md-content__inner > div,
.md-content__inner > section,
.md-content__inner > article {
  max-width: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* 让主内容区域充分利用整个页面宽度 */
.md-content {
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.md-content__inner {
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* 调整主内容区域的布局 */
.md-main {
  margin-right: 0 !important;
}

.md-main__inner {
  margin-right: 0 !important;
  max-width: none !important;
}

/* 确保内容区域没有右侧边距 */
.md-typeset {
  margin-right: 0 !important;
  max-width: none !important;
}

/* 代码块样式 */
.md-typeset pre {
    background-color: #f5f5f5;
    border-left: 4px solid #2196F3;
    padding: 1em;
    margin: 1em 0;
}

/* 内联代码样式 */
.md-typeset code {
    background-color: #f5f5f5;
    color: #d73a49;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* 表格样式 */
.md-typeset table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.md-typeset th,
.md-typeset td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.md-typeset th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 引用块样式 */
.md-typeset blockquote {
    border-left: 4px solid #2196F3;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
}

/* 警告框样式 */
.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
}

.warning::before {
    content: "⚠️ ";
    font-weight: bold;
}

/* 信息框样式 */
.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
}

.info::before {
    content: "ℹ️ ";
    font-weight: bold;
}

/* 成功框样式 */
.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
}

.success::before {
    content: "✅ ";
    font-weight: bold;
}

/* 错误框样式 */
.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
}

.error::before {
    content: "❌ ";
    font-weight: bold;
}

/* 导航样式 */
.md-nav__link {
    color: #333;
    text-decoration: none;
}

.md-nav__link:hover {
    color: #2196F3;
    text-decoration: underline;
}

/* 搜索框样式 */
.md-search__input {
    border: 2px solid #ddd;
    border-radius: 4px;
}

.md-search__input:focus {
    border-color: #2196F3;
    outline: none;
}

/* 按钮样式 */
.md-button {
    background-color: #2196F3;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0.5em 0;
}

.md-button:hover {
    background-color: #1976D2;
}

/* 卡片样式 */
.md-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5em;
    margin: 1em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.md-card h3 {
    margin-top: 0;
    color: #2196F3;
}

/* 标签样式 */
.md-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.2em 0.6em;
    border-radius: 12px;
    font-size: 0.8em;
    margin: 0 0.2em;
}

/* 进度条样式 */
.md-progress {
    background-color: #f0f0f0;
    border-radius: 4px;
    height: 8px;
    margin: 1em 0;
    overflow: hidden;
}

.md-progress-bar {
    background-color: #2196F3;
    height: 100%;
    transition: width 0.3s ease;
}

/* 工具提示样式 */
.md-tooltip {
    position: relative;
    display: inline-block;
}

.md-tooltip .md-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.md-tooltip:hover .md-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .md-typeset table {
        font-size: 0.8em;
    }
    
    .md-card {
        padding: 1em;
    }
    
    .md-button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* 打印样式 */
@media print {
    .md-nav,
    .md-search,
    .md-button {
        display: none;
    }
    
    .md-typeset {
        font-size: 12pt;
        line-height: 1.4;
    }
} 

/* 图片浮空阴影效果 */
img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* 图片悬停效果 */
img:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

/* 确保图片居中显示 */
img[alt*="Operation"] {
    margin: 20px auto;
}

/* 为特定图片添加额外样式 */
img[alt*="结构"],
img[alt*="定义"],
img[alt*="Storage"] {
    border: 1px solid #e1e4e8;
    background: #ffffff;
} 